package com.yomob.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhaolong
 * @since 2017/8/14.
 */
    @Controller
    @RequestMapping("/layout")
    public class LayoutController {
    @RequestMapping
        public ModelAndView index(){
            List<String> learnList =new ArrayList<String>();
            learnList.add("layout");
             ModelAndView modelAndView = new ModelAndView("/layout");
            modelAndView.addObject("learnList", learnList);
            return modelAndView;
        }
    }
